package org.ilovecode.display 
{
	import flash.display.MovieClip;
	import flash.display.SimpleButton;
	import flash.events.MouseEvent;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	
	import org.ilovecode.screen.Screen;
	import org.ilovecode.screen.ScreenGroup;
	import org.ilovecode.screen.ScreenName;
	
	/**
	 * ...
	 * @author Vjekoslav Ratkajec
	 */
	public class Contact extends Screen 
	{
		
		public var zaneButton:SimpleButton;
		
		public function Contact() 
		{
			super(ScreenName.CONTACT, ScreenGroup.APARTMENTS, "contactApartments");
		}
		
		override protected function addListeners():void
		{
			super.addListeners();
			zaneButton.addEventListener(MouseEvent.CLICK, zaneButtonClick);
		}
		
		override protected function removeListeners():void
		{
			super.removeListeners();
			zaneButton.removeEventListener(MouseEvent.CLICK, zaneButtonClick);
		}
		
		private function zaneButtonClick(event:MouseEvent):void {
			navigateToURL(new URLRequest("http://www.zane.hr/"), "_blank");
		}
		
	}

}